import BasicLayout from '@/layouts/basic-layout';

const pre = 'rent_';

export default {
    path: '/admin/rent',
    name: 'rent',
    header: 'rent',
    meta: {
        // 授权标识
        auth: ['admin-rent-index']
    },
    redirect: {
        name: `${pre}rentCarList`
    },
    component: BasicLayout,
    children: [
        // {
        //     path: 'product_list',
        //     name: `${pre}productList`,
        //     meta: {
        //         title: '产品管理',
        //         auth: ['admin-store-storeProuduct-index']
        //     },
        //     component: () => import('@/pages/product/productList')
        // },
        {
            path: 'car_classify',
            name: `${pre}carClassify`,
            meta: {
                title: '产品分类',
                auth: ['admin-rent-carCategory-index']
            },
            component: () => import('@/pages/rent/carClassify')
        },
        // {
        //     path: 'add_product/:id?',
        //     name: `${pre}productAdd`,
        //     meta: {
        //         auth: ['admin-store-storeProuduct-index'],
        //         title: '产品添加'
        //     },
        //     component: () => import('@/pages/product/productAdd')
        // }
    ]
};
